<?php
/* @var $this RegteacherController */
/* Yii::app()->clientScript->scriptMap=array(
'jquery.js'=>false,
'jquery.ba-bbq.js'=>false,
); */
?>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'teacher-grid',
	'summaryText'=>'',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
		'selectionChanged'=>"function(id){
				getTeacher($.fn.yiiGridView.getSelection(id),$id);
             
		
		}",
	'columns'=>array(
			array(
					'header'=>'รหัสอาจารย์',
					'htmlOptions'=>array('width'=>'120px'),
					'value'=>'$data->user_id',
					'filter'=>CHtml::activetextField($model,'user_id'),
			),
		array(
			'header'=>'ชื่ออาจารย์',
			'value'=>'$data->name." ".$data->surname',	
			'filter'=>CHtml::activetextField($model,'name'),		
			),
	),
)); ?>
